
export const setUser = (data) => {
  localStorage.setItem('user', JSON.stringify(data))
}

export const getUser = () => {
  const user = localStorage.getItem('user') || '{}'
  return JSON.parse(user)
}

export const removeUser = () => {
  localStorage.removeItem('user')
}